/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package network.events;

/**
 *
 * @author rbs
 */
public class StatusEvent {
    int car_num;
    int status;

    public StatusEvent(String netCode)
    {
        String[] split = netCode.split("#");
        car_num = Integer.parseInt(split[0]);
        status = Integer.parseInt(split[1]);
    }
    
    public StatusEvent(int car_num, int status) {
        this.car_num = car_num;
        this.status = status;
    }
   
    public String getString()
    {
        return "" + car_num + "#" + status; 
    }
}
